SDK/J Authentication Package ver1.0
RICOH Confidential

jp.co.ricoh.dsdk.scard.framework.service
Interface CardServiceFactory


public interface CardServiceFactory

This is an interface used in the Framework.


Method Summary
 CardService create(Card card, java.lang.Class cls)
           This method is called by the Framework.
 void initialize(java.util.Hashtable env)
           This method is called by the Framework.
 java.util.Iterator listCardServices()
           This method is called by the Framework.
 void release()
           This method is called by the Framework.
 

Method Detail

initialize

public void initialize(java.util.Hashtable env)
                throws CardServiceFactoryException
This method is called by the Framework.

Parameters:
env - an environment property.
Throws:
CardServiceFactoryException - when an error has occurred in the initialization of the CardServiceFactory.

release

public void release()
             throws CardServiceFactoryException
This method is called by the Framework.

Throws:
CardServiceFactoryException - when an error has occurred in the release of the resources.

listCardServices

public java.util.Iterator listCardServices()
                                    throws CardServiceFactoryException
This method is called by the Framework.

Returns:
the iterator of the CardService.
Throws:
CardServiceFactoryException - when an error has occurred in the obtainment of a CardService.

create

public CardService create(Card card,
                          java.lang.Class cls)
                   throws CardServiceNotFoundException,
                          CardServiceFactoryException
This method is called by the Framework.

Parameters:
card - a card object.
cls - a CardService class.
Returns:
the card service.
Throws:
CardServiceNotFoundException - when an appropriate card service was not found.
CardServiceFactoryException - when an error has occurred in the card service factory.

SDK/J Authentication Package ver1.0
RICOH Confidential